What are different types of access modifiers Pushpendra Singh170225-Oct-2010javajava Updated on 21-Sep-2020
Pushpendra Singh
08-Nov-2010Private: Any thing declared as private can’t be seen outside of its class.
Protected: Any thing declared as protected can be accessed by classes in the same package and subclasses in the other packages.
Default modifier : Can be accessed only to classes in the same package.